<include file="../header" />
<body class="J_scroll_fixed">
     <script>

        $(document).ready(function() {
         
             $('button.view').click(function () {

                 var id = $(this).attr("id");
                layer.open({

                    type: 2,
                    title: '查看日志',
                    maxmin: false,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['90%', '98%'],
                    content: "{:U('solarPanel/viewLog')}&id="+id,

                });
            });
            
        });

    </script>
    <div class="wrap J_check_wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('solarPanel/index')}">太阳板信息</a></li>
            <li><a href="{:U('solarPanel/add')}">添加太阳板</a></li>
        </ul>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>序列号</th>                                        
                    <th>所在区域</th>
                    <th>创建时间</th>
                    <th>查看工作日志</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>

            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.panel_id}</td>
                    <td>{$vo.number}</td>	
                    <td>{$vo.area_name}</td>
                    <td>{$vo.create_time}</td>    
                    <td><button class="btn-success view" id="{$vo.panel_id}">查看</button></td>
                    <td>
                        <a href='{:U("solarPanel/edit",array("id"=>$vo["panel_id"]))}'>修改</a>
                        |
                        <a class="J_ajax_del" href="{:U('solarPanel/delete',array('id'=>$vo['panel_id']))}">删除</a>
                    </td>

                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>